package com.joker.orange.service;

import com.joker.orange.domain.CaricatureInfo;
import com.joker.orange.domain.vo.CaricatureInfoVo;
import com.joker.orange.domain.bo.CaricatureInfoBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;
import com.joker.orange.domain.vo.VideoInfoVo;

import java.util.Collection;
import java.util.List;

/**
 * 漫画信息Service接口
 *
 * @author Joker
 * @date 2024-06-09
 */
public interface ICaricatureInfoService {

    /**
     * 查询漫画信息
     */
    CaricatureInfoVo queryById(Long id);

    CaricatureInfo getCaricatureInfo(Long id);

    /**
     * 查询漫画信息列表
     */
    TableDataInfo<CaricatureInfoVo> queryPageList(CaricatureInfoBo bo, PageQuery pageQuery);

    /**
     * 查询漫画信息列表
     */
    List<CaricatureInfoVo> queryList(CaricatureInfoBo bo);

    /**
     * 新增漫画信息
     */
    Boolean insertByBo(CaricatureInfoBo bo);

    Long insertCaricatureInfo(CaricatureInfo caricatureInfo);

    /**
     * 修改漫画信息
     */
    Boolean updateByBo(CaricatureInfoBo bo);

    void updateCaricatureChapterAndHeatNum(CaricatureInfoBo bo);

    /**
     * 校验并批量删除漫画信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    public List<CaricatureInfoVo> getRandomCaricatures(List<CaricatureInfoVo> caricatureInfoVoList, int count);

    public List<CaricatureInfo> listAllCaricature();

}
